package com.alibaba.citrus.cr.mn.order.center.facade.service.dataobject.response;

import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;


@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class MnSapIf013Detail implements Serializable {
    private static final Long serialVersionUID = -360523867L;

    /**
    * 数据唯一标识
    */
    private String Item_key;

    /**
    * 订单平台调拨行号
    */
    private String allocateOrderLineId;

    /**
    * SAP销售预报单行号
    */
    private String outAllocateApplyOrderLineId;

    /**
    * SAP销售行号
    */
    private String outAllocateOrderLineId;

    /**
    * 货品编码
    */
    private String scItemId;

    /**
    * 数量
    */
    private String quantity;

    /**
    * 确认数量
    */
    private String confirmQuantity;

    /**
    * 销售单位
    */
    private String saleUnit;

    /**
    * 单价
    */
    private String price;

    /**
    * 折扣后总金额
    */
    private String subTotalAmount;

    /**
    * 拒绝原因编码
    */
    private String closeCode;

    /**
    * 拒绝原因
    */
    private String closeReason;

    /**
    * 赠品数量
    */
    private String giftQuantity;

    /**
    * 税率
    */
    private String taxRate;

    /**
    * 备注
    */
    private String remarks;

    /**
    * 扩展信息
    */
    private String features;

    /**
    * ext
    */
    private String ext;

    /**
    * 确认日期
    */
    private String ext1;

    /**
    * 交货工厂
    */
    private String ext2;

    /**
    * 库存地点
    */
    private String ext3;
    public String getItemKey(){
        return getItem_key().replaceAll("^0+", "");
    }
    public String getItemCode(){
        return getScItemId().replaceAll("^0+", "");
    }
}
